package com.lingshu.app.service;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.Streaming;

/**
 * @author 于定金
 * @version 1.0
 * @Date 2024/1/18 10:40
 * @Description
 */
public interface DownloadService {
    /**
     * 下载筛查影像
     * @param id
     * @return
     */
    @Streaming
    @GET("download/screenshot")
    Observable<Response<ResponseBody>> downloadScreenshot(@Query("id") Long id);

    /**
     * 下载文件
     * @param imageId
     * @return
     */
    @Streaming
    @GET("download/image")
    Observable<Response<ResponseBody>> downloadImage(@Query("imageId") long imageId);
}
